﻿<%@ Page Title="" Language="C#" MasterPageFile="~/_page.Master" AutoEventWireup="true" CodeBehind="DocItem-List.aspx.cs" Inherits="SmartSpace.WebApp.Modules.OA.Pages.DocItem_List" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentTitle" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentHead" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentBody" runat="server">
    <table style="width: 100%">
        <tr>
            <td style="width: 300px; vertical-align: top">
                <div class="ss-box">
                    <h1>目录列表
                    </h1>
                    <div class="ss-tbar">
                        <asp:HyperLink ID="AddFolder" runat="server" CssClass="ss-btn">
                            <img src="../Res/Images/folder_classic_add.png"/>
                            <em>添加</em>
                        </asp:HyperLink>
                        <asp:HyperLink ID="EditFolder" Text="EditFolder" runat="server" CssClass="ss-btn">
                            <img src="../Res/Images/folder_classic_edit.png"/><em>修改</em>
                        </asp:HyperLink>
                        <asp:LinkButton runat="server" ID="DelFolder" OnClick="DelFolder_Click" CssClass="ss-btn">
                            <img src="../Res/Images/folder_classic_remove.png"/><em>删除</em>
                        </asp:LinkButton>
                    </div>
                    <div class="ss-box-content">
                        <asp:TreeView ID="Doc_Tree" runat="server" ShowLines="True">
                            <NodeStyle ImageUrl="~/Modules/OA/Res/Images/folder_classic.png"/>
                        </asp:TreeView>
                    </div>
                </div>
            </td>
            <td style="vertical-align: top">
                <div class="ss-box">
                    <h1>文件列表
                    </h1>
                    <div class="ss-tbar" nodestyle-imageurl="../Res/Images/folder.png">
                        <asp:HyperLink ID="UpLoadDoc" runat="server" CssClass="ss-btn">
                            <img src="../Res/Images/folder_classic_up.png"/><em>上传</em>
                        </asp:HyperLink>
                    </div>
                    <table class="ss-list" cellspacing="0" cellpadding="0" style="width: 100%;">
                        <tr>
                            <th>编号</th>
                            <th>名称</th>
                            <th>描述</th>
                            <th>创建人</th>
                            <th>创建时间</th>
                            <th>操作</th>
                        </tr>
                        <asp:Repeater ID="rep1" runat="server" OnItemCommand="rep1_ItemCommand">
                            <ItemTemplate>
                                <tr>
                                    <td><%# Eval("Code") %></td>
                                    <td><%# Eval("Caption") %></td>
                                    <td><%# Eval("Description") %></td>
                                    <td><%# Eval("Creator") %></td>
                                    <td><%# Eval("CreatedDate") %></td>
                                    <td>
                                        <a href="DocFile-DownLoad.aspx?Id=<%# Eval("Id") %>&parentId=<%= Request.QueryString["parentId"] %>">Down</a>
                                        <asp:LinkButton ID="LinkButton1" CommandName="Delete" runat="server" CommandArgument='<%# Eval("Id") %>' Text="删除" />
                                    </td>
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                    </table>
                </div>
            </td>
        </tr>
    </table>
</asp:Content>
